import request from "../request";

/**
 * 获取管理员列表数据 GET
 * @getAdminList(url: stirng, params: object)
 * @return Promise
*/
export function getAdminList(url, params) {
  return request.get(url, { params })
}

/**
 * 删除管理员数据 POST
 * @delAdmin(url: stirng, params: object)
 * @return Promise
*/
export function delAdmin(url, data) {
  return request({
    url,
    method:"post",
    data
  })
}

/**
 * 添加管理员数据 POST
 * @addAdmin(url: stirng, params: object)
 * @return Promise
*/
export function addAdmin(url, data) {
  return request({
    url,
    method:"post",
    data
  })
}

/**
 * 修改管理员数据 POST
 * @editAdmin(url: stirng, params: object)
 * @return Promise
*/
export function editAdmin(url, data) {
  return request({
    url,
    method:"post",
    data
  })
}